//
//  WYReplyCell.m
//  Boss
//
//  Created by admin on 2018/7/2.
//  Copyright © 2018年 admin. All rights reserved.
//

#import "WYReplyCell.h"
@interface WYReplyCell()
@property (strong, nonatomic) IBOutlet UIImageView *headImageView;
@property (strong, nonatomic) IBOutlet UILabel *nameLabel;

@property (strong, nonatomic) IBOutlet UILabel *timeLabel;
@property (strong, nonatomic) IBOutlet UILabel *commentLabel;
@property (strong, nonatomic) IBOutlet UIImageView *commentImageView;

@property (strong, nonatomic) IBOutlet UILabel *reolayLabel;
@property (strong, nonatomic) IBOutlet UIView *backView;
@property (strong, nonatomic) IBOutlet UIImageView *VipImageView;

@end
@implementation WYReplyCell

-(void)setModel:(WYReplayModel *)model
{
    _model = model;
    [self.VipImageView showVipImageViewStatusWithVipId:model.vipId];
    [self.headImageView sd_setImageWithURL:[NSURL URLWithString:model.headUrl] placeholderImage:[UIImage imageNamed:@"logo_place"]];
    self.nameLabel.text = model.userName;
    self.timeLabel.text = model.createTime;
    self.commentLabel.text = model.comment;
    [self.commentImageView sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@!default",model.url]] placeholderImage:[UIImage imageNamed:@"logo_place"]];
    
    if ([model.type isEqualToString:@"1"]) {
        
    }else{
        
    }
    
    if (model.reply.length) {
        self.reolayLabel.text = model.reply;
        self.backView.hidden = NO;
    }else{
//        self.reolayLabel.text = model.reply;
       self.backView.hidden = YES;;
    }
    
    
    
}




- (void)awakeFromNib {
    [super awakeFromNib];
    [self.headImageView setCornerRadius:20.f];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
